package com.webank.wedatasphere.linkis.metadata.greenplum.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: GpMetaDao
 * @Description: 描述:greenplum 数据库查询帮助类
 * @author: zys
 * @date: 2021/3/3  16:59
 */
public interface GpMetaDao {
    void useDB(@Param("dbName") String dbName);
    List<String> getDbsByUser(@Param("userName")String userName);
    List<Map<String, Object>> getTablesByDbNameAndUser(Map<String, String> map);
    List<Map<String, Object>> getColumns(Map<String, String> map);
    List<Map<String, Object>> getPartitionKeys(Map<String, String> map);
    List<String> getPartitions(Map<String, String> map);
    List<Map<String, Object>> getTableDesc(Map<String, String> map);
    List<String> getPartitionTables(Map<String, String> map);
    String getPartitionTableSize(String tableName);
   // String getTableComment(@Param("DbName") String DbName, @Param("tableName") String tableName);
    int dropTable(Map<String, String> map);
}
